package com.tanhua.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

//问卷表
@Document(collection ="questionnaire" )
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Questionnaire implements Serializable {
    private static final long serialVersionUID = 4909002563751721880L;

    @Id
    private ObjectId id;//主键
    private Integer nid;//问卷编号
    private String name;//问卷名称
    private String cover;//封面
    private String level;//级别
    private Integer star;//星别
    private Integer qid;//试题id
}
